package com.fxb.project.exam;

public class Test29 {
    double d;
    void change1(int num){
        num=100;
    }
    void change2(String str){
        str=new String("false");
    }
    void change3(Test29 ex){
        ex.d = 100;
    }

    public static void main(String[] args) {
        Test29 ex = new Test29();
        int i=15;
        ex.change1(i);
        System.out.println("i value is"+i);

        String s = new String("true");
        ex.change2(s);
        System.out.println("s value is  "+s);
    }
}
